package com.eascs.cloudFile.service.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.eascs.cloudFile.dao.CloudFilesDao;
import com.eascs.cloudFile.entity.CloudDatalist;
import com.eascs.cloudFile.service.CloudFileService;

public class CloudFileServiceImpl implements CloudFileService {

	@Autowired
	CloudFilesDao cloudFilesDao;
	
	/**
	 * 通过附件id查询附件信息
	 * 
	 * @param id
	 * @return
	 */
	@Override
	public CloudDatalist queryDataListById(String id) {
		return cloudFilesDao.findCloudDatalistById(id);
	}

	@Override
	public CloudDatalist updateUrlPath(CloudDatalist cloudDatalist) {
		cloudFilesDao.updateById(cloudDatalist);
		return cloudDatalist;
	}

}
